#include <stdio.h>
#include <ctype.h>

#define MAX_SIZE 100

int main(int argc, char **argv)
{
    char c, message[MAX_SIZE] = {0};
    int i = 0;

    printf("Enter message: ");
    while((c = getchar()) != '\n' && i < MAX_SIZE)
    {
        message[i++] = c;
    }

    printf("In B1FF-speak: ");

    for (i = 0; i < MAX_SIZE; i++)
    {
        switch ( c = toupper(message[i]) )
        {
        case 'A':
            putchar('4');
            break;
        case 'B':
            putchar('8');
            break;
        case 'E':
            putchar('3');
            break;
        case 'I':
            putchar('1');
            break;
        case 'O':
            putchar('0');
            break;
        case 'S':
            putchar('5');
            break;
        case 0:
            goto B1FFend;
            break;
        default:
            putchar(c);
            break;
        }
    }

B1FFend:
    printf("!!!!!!!!!!\n");

    return 0;
}
